package cn.edu.scau.cmi.liquan.exercise6.Example6_10;

public class Pillar {
        Geometry bottom;
        double height;
        Pillar(Geometry bottom,double height){
        	this.bottom=bottom;
        	this.height=height;
        }
        public double getVolume() {
        	return  bottom.getArea()*height;
        }
}
